<template>
	<view style="padding: 10px 20px; background-color: #fff;">
    <!-- 导航栏 -->
    <u-navbar
      :leftText="'用户协议'"
      left-icon="arrow-left"
      left-icon-color="#303133"
      bg-color="#ffffff"
      fixed
      placeholder
      @left-click="back"
    >
    </u-navbar>
	<up-parse :content="content"></up-parse>
	</view>
</template>

<script setup>
import { navigate as publicNavigate } from "@/utils/public.js";
import { ref } from 'vue';
	import { getById } from '@/api/sysConfig.js'
const back = () => {
  publicNavigate("back");
};
const getContent = async () =>{
		const res = await getById(3).catch(err=>{
			console.log(err)
		})
		if(res && res.code === 200){
			content.value = res.data.vo.value
		}
	}
	getContent()
const content = ref(`  
	<p>内容xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p>  
`);  
</script>

<style lang="scss">

</style>
